package com.dgut.lotterySystem.controller.param;

import lombok.Data;

import java.io.Serializable;

@Data
public class PageParam implements Serializable {
    /**
     * 当前页
     */
    private Integer currentPage=1;
    /**
     * 页面数据大小
     */
    private Integer pageSize=10;

    public Integer offset(){
        return (this.currentPage-1)*this.pageSize;
    }
}
